//
//  UserData.swift
//  maste
//
//  Created by 帽子 on 2020/8/15.
//  Copyright © 2020 帽子. All rights reserved.
//

import SwiftUI

final class UserData: ObservableObject {
    // 加载用户选择的数据源
    var userDatasources = (UserDefaults.standard.array(forKey: "userDatasources") ?? []) as [String]
    static let historyFileName = "history.json"
    static var pasteData: [PasteItem] = LocalCacheUtil.getAll(filename: historyFileName)
}
